<?php $SS = new Zend_Session_Namespace ('Language');

$lang = $SS->language;

$langConfirm = "Đơn hàng của bạn được gửi thành công";
if($lang == "en"){
$langConfirm = "Your invoice sent successfull";  
}elseif($lang == "chi"){
$langConfirm = "發送您的發票全成";
}


$langTotalInvoice = "Tổng đơn hàng";
if($lang == "en"){
$langTotalInvoice = "Total invoice";  
}elseif($lang == "chi"){
$langTotalInvoice = "總發票";
}

$langRecivedInfo = "Thông tin người nhận";
if($lang == "en"){
$langRecivedInfo = "Received  info";  
}elseif($lang == "chi"){
$langRecivedInfo = "接收到的信息";
}
$langName = "Tên";
  if($lang == "en"){
  $langName = "Name";  
  }elseif($lang == "chi"){
  $langName = "名";  
  }
  
   $langMobile = "Điện thoại";
  if($lang == "en"){
  $langMobile = "Mobile";  
  }elseif($lang == "chi"){
  $langMobile = "移動";  
  }
  
  $langContent = "Nội dung";
  if($lang == "en"){
  $langContent = "Content";  
  }elseif($lang == "chi"){
  $langContent = "內容";  
  }
  
  $langEmail = "Email";
  if($lang == "en"){
  $langEmail = "Email";  
  }elseif($lang == "chi"){
  $langEmail = "電子郵件";  
  }
  
  $langBackhome = "Nhấn vào đây để quay về trang chủ";
  if($lang == "en"){
  $langBackhome = "Click here to redirect home page";  
  }elseif($lang == "chi"){
  $langBackhome = "點擊這裡重定向頁面";  
  }
?>
<div class="span8" style="margin-top: 30px;">
    <div class="head-content"><?php echo $langConfirm;?> </div>
    <div class="key_order"><?php echo $lang == "vi" ? "Mã đơn hàng" : "Key";?> : <span class="red"><strong><?php echo $this->data->order_key;?></strong></span></div>
     <div class="fix-list-order">
        <table cellspacing="0" class="table review-order">
        <?php foreach($this->dataOrder as $i=>$value):
        @$total = $total + $value['total'];
        ?>
            <tr>
                        
                <td align="center"><img src="<?php echo $this->baseUrl()."/upload/".$value['image'];?>" width="80" height="66"/></td>
                <td><strong><?php echo $value['name'];?></strong></td>
                <td><span style="color: red;"><?php echo number_format($value['price']);?> VNĐ </span></td>
                <td style="text-align: center;"><?php echo $value['number'];?> Kg</td>
                <td><span style="color: green;"><?php echo number_format($value['total']);?> VNĐ </span></td>
                
            </tr>
        <?php endforeach;?>
        <tr><td colspan="5" align = "right"><?php echo $langTotalInvoice;?> : <strong> <?php echo number_format($total);?></strong> VND</td></tr>
        </table>
       <div class="head-content"><?php echo $langRecivedInfo;?> </div>
       <table cellspacing="0" class="table review-order">
       
            <tr>      

                <td width="120"><strong><?php echo $langName;?> :</strong></td>
                <td><?php echo $this->data->name;?></td>
            </tr>
            <tr>      

                <td><strong><?php echo $langMobile;?> :</strong></td>
                <td><?php echo $this->data->mobile;?></td>
            </tr>
            
            <tr>      

                <td><strong><?php echo $langEmail;?> :</strong></td>
                <td><?php echo $this->data->email;?></td>
            </tr>
            <tr>      

                <td><strong><?php echo $langContent;?> :</strong></td>
                <td><?php echo $this->data->content;?></td>
            </tr>
        </table>
        <div class=""><a href="/"><?php echo $langBackhome;?></a></div>
    </div>
</div>